package com.changgou.goods.feign;

import com.changgou.goods.pojo.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("goods") //调用的是哪个微服务
public interface SkuFeign {
    @GetMapping("/sku/spu/{spuId}")
    List<Sku> findListBySpuId(@PathVariable("spuId") String spuId);
}
